package model;

import java.util.Date;



public class Absence implements Comparable<Absence> {

	private int Absence_Id;
	private String Absence_Teacher;
	private String Absence_Substitude;
	public int Absence_Hours;
	public String Absence_Note;
	public Date Absence_StartDate;
	public Date Absence_EndDate;
	public String Absence_Reason;

	public Absence(int absence_Id, String absence_Teacher,
			String absence_Substitude, int absence_Hours, String absence_Note,
			Date absence_StartDate, Date absence_EndDate, String absence_Reason2) {
		super();
		Absence_Id = absence_Id;
		Absence_Teacher = absence_Teacher;
		Absence_Substitude = absence_Substitude;
		Absence_Hours = absence_Hours;
		Absence_Note = absence_Note;
		Absence_StartDate = absence_StartDate;
		Absence_EndDate = absence_EndDate;
		Absence_Reason = absence_Reason2;
	}


	@Override
	public boolean equals(Object arg0) {
		return super.equals(arg0);
	}

	public int getAbsence_Id() {
		return Absence_Id;
	}

	public void setAbsence_Id(int absence_Id) {
		Absence_Id = absence_Id;
	}

	public int getAbsence_Hours() {
		return Absence_Hours;
	}

	public void setAbsence_Hours(int absence_Hours) {
		Absence_Hours = absence_Hours;
	}

	public String getAbsence_Note() {
		return Absence_Note;
	}

	public void setAbsence_Note(String absence_Note) {
		Absence_Note = absence_Note;
	}

	public Date getAbsence_StartDate() {
		return Absence_StartDate;
	}

	public void setAbsence_StartDate(Date absence_StartDate) {
		Absence_StartDate = absence_StartDate;
	}

	public Date getAbsence_EndDate() {
		return Absence_EndDate;
	}

	public void setAbsence_EndDate(Date absence_EndDate) {
		Absence_EndDate = absence_EndDate;
	}

	public String getAbsence_Reason() {
		return Absence_Reason;
	}

	public void setAbsence_Reason(String absence_Reason) {
		Absence_Reason = absence_Reason;
	}

	public String getAbsence_Substitude() {
		return Absence_Substitude;
	}

	public void setAbsence_Substitude(String absence_Substitude) {
		Absence_Substitude = absence_Substitude;
	}

	public String getAbsence_Teacher() {
		return Absence_Teacher;
	}

	public void setAbsence_Teacher(String absence_Teacher) {
		Absence_Teacher = absence_Teacher;
	}

	@Override
	public int hashCode() {
		return super.hashCode();
	}
	
	// CompareTo for Absence on absence_id
	//Return type is int for location
	//daardoor moet je bij int - gebruiken zodat hij weet hoe er geordend moet worden
	public int compareTo(Absence a) {
		return Absence_Id - a.getAbsence_Id();
	}
}
